package com.controller;

import com.common.core.controller.BaseController;
import com.domain.entity.DiyTable;
import com.service.IDiyTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/diyTbale")
public class DiyTableController extends BaseController {


    @Autowired
    private IDiyTableService diyTableService;

    @PostMapping("/getColData")
    public Object getColData(@RequestBody Map<String,String> map) {
        return diyTableService.getColData(map);
    }

    @PostMapping("/getList")
    public Object getList(@RequestBody List<DiyTable> diyTables) {
        return diyTableService.getList(diyTables);
    }

}
